package com.cskt.petproject178.mapper;

import com.cskt.petproject178.pojo.entity.ProductCategory;
import com.cskt.petproject178.pojo.vo.CategoriesVO;
import com.cskt.petproject178.pojo.vo.ProductCategoryLevel1VO;

import java.util.List;

public interface ProductCategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insertSelective(ProductCategory record);

    ProductCategory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProductCategory record);

    /**
     * 查询所有的商品分类
     * @return
     */
    List<ProductCategoryLevel1VO> selectProductCategoryVO();

    List<CategoriesVO> getCategoriesList();
}